<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="bootstrap-3.4.1/css/bootstrap.css">

    <style>
        .navbar{
            background-color: #335171;
        }
        .container{
            background-color: #335171;
        }
        .dropdown{
            width: 120px;
        }
    </style>
</head>
<body>

<nav class="navbar navbar-default navbar-fixed-top" style="border-radius: 0;">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                    data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">振动传感器</a>
        </div>

        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">

                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
                       aria-expanded="false">记录<span class="caret"></span></a>
                    <ul class="dropdown-menu">
                        <li><a href="#">记录数据</a></li>
                        <li><a href="#">查看文件</a></li>
                        <li><a href="#">记录设置</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="#">数据回放</a></li>
                    </ul>
                </li>

                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
                       aria-expanded="false">工具<span class="caret"></span></a>
                    <ul class="dropdown-menu">
                        <li><a href="#">计算器</a></li>
                        <li><a href="#">查看文件</a></li>
                        <li><a href="#">记录设置</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="#">数据回放</a></li>
                    </ul>
                </li>

                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
                       aria-expanded="false">视图<span class="caret"></span></a>
                    <ul class="dropdown-menu">
                        <li><a href="#">计算器</a></li>
                        <li><a href="#">查看文件</a></li>
                        <li><a href="#">记录设置</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="#">数据回放</a></li>
                    </ul>
                </li>
            </ul>

            <ul class="nav navbar-nav navbar-right">
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
                       aria-expanded="false">小熊 <span class="caret"></span></a>
                    <ul class="dropdown-menu">
                        <li><a href="#">个人中心</a></li>
                        <li><a href="#">我的资料</a></li>
                        <li><a href="#">重置密码</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="#">退出登录</a></li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
</nav>

<div style="height:2000px;">

</div>

<script src="js/jquery-3.7.1.min.js"></script>
<script src="bootstrap-3.4.1/js/bootstrap.js"></script>
</body>
</html>